package cn.stylefeng.guns.modular.agv.mapper;

import cn.stylefeng.guns.modular.agv.entity.AgvStoragePosition;
import cn.stylefeng.guns.modular.agv.model.params.AgvStoragePositionParam;
import cn.stylefeng.guns.modular.agv.model.result.AgvStoragePositionResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * AGV拣选库位表 Mapper 接口
 * </p>
 *
 * @author zhangzh
 * @since 2024-08-09
 */
public interface AgvStoragePositionMapper extends BaseMapper<AgvStoragePosition> {

    /**
     * 获取列表
     *
     * @author zhangzh
     * @Date 2024-08-09
     */
    List<AgvStoragePositionResult> customList(@Param("paramCondition") AgvStoragePositionParam paramCondition);

    AgvStoragePositionResult findBySpec(@Param("paramCondition") AgvStoragePositionParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhangzh
     * @Date 2024-08-09
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") AgvStoragePositionParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhangzh
     * @Date 2024-08-09
     */
    Page<AgvStoragePositionResult> customPageList(@Param("page") Page page, @Param("paramCondition") AgvStoragePositionParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhangzh
     * @Date 2024-08-09
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") AgvStoragePositionParam paramCondition);

}
